package cn.wen233.srpc.basic.utils;

import lombok.Data;

/**
 * @author wenjie
 * @date 2022-03-21 17:55
 */
@Data
public class Pair<L, R> {

    public L fst;

    public R snd;

    public Pair(L fst, R snd) {
        this.fst = fst;
        this.snd = snd;
    }

    public static <L, R> Pair<L, R> of(L l, R r) {
        return new Pair<>(l, r);
    }
}
